package polimi.sc.expoquest.screen;

import polimi.sc.expoquest.screen.LoginActivity;

import polimi.sc.expoquest.R;
import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.View;

public class MainActivity extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        
        findViewById(R.id.welcomeid).setOnClickListener(
				new View.OnClickListener() {
					@Override
					public void onClick(View view) {
						
						enterApplication();
					}
				});
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        // Inflate the menu; this adds items to the action bar if it is present.
        getMenuInflater().inflate(R.menu.activity_main, menu);
        return true;
    }
    
    public void enterApplication()
	{
		 Intent LoginIntent=new Intent(this, LoginActivity.class);
	     startActivityForResult(LoginIntent, 0);
	}
}
